using System;
using uk.co.tonyditchfield.tort.attributes;
using uk.co.tonyditchfield.tort.persistence;

namespace uk.co.tonyditchfield.tort.unittests.tort.objects
{
    [DBObject("TestUser")]
    public class User
    {
        private int userId;

        [PrimeKey("UserId")]
        public int UserId
        {
            get { return userId; }
            set { userId = value; }
        }

        
        private string userName;

        [DBField]
        public string UserName
        {
            get { return userName; }
            set { userName = value; }
        }

        private string firstName;

        [DBField("FNAME")]
        public string FirstName
        {
            get { return firstName; }
            set { firstName = value; }
        }

        private string email;
        [DBField]
        public string Email
        {
            get { return email; }
            set { email = value; }
        }

        private DateTime datefield;
        [DBField]
        public DateTime Datefield
        {
            get { return datefield; }
            set { datefield = value; }
        }

        private String fullName;
        [DBField("Names")]
        public String FullName
        {
            get { return fullName; }
            set { fullName = value; }
        }
      
        private string someOtherStuff;
        public string SomeOtherStuff
        {
            get { return someOtherStuff; }
            set { someOtherStuff = value; }
        }

        private Address address;
        [LoadRequirement("addressident")]
        public Address Address
        {
            get { return address; }
            set { address = value; }
        }

    }
}
